<script setup lang="ts">
import * as echarts from 'echarts';
import { onMounted } from 'vue'
import { textclouds } from '@/router/text'
// import 'echarts-wordcloud';
import 'echarts-wordcloud';
function word(){
  const chart = echarts.init(document.getElementById('main3'));
  // 舆情线型图
  chart.setOption(textclouds());
}
onMounted(()=>{
  word()
})
</script>

<template>
  <div text>
    <div id="main3">

    </div>
  </div>
</template>

<style scoped>
[text]{
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;

}
#main3{
  width: 100%;
  height: 100%;
}
</style>
